package br.ufrj.cg.view;

import java.awt.Color;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;

public class StampsPanel extends JPanel {

	private JButton btnTopSecret = null;
	private JButton btnSelo = null;
	private JButton btnMailMe = null;
	private JButton btnIronMan = null;
	private JButton btnUsPostage = null;
	private JButton btnFleurDeLys = null;
	
	/**
	 * Create the panel.
	 */
	public StampsPanel() {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setLayout(null);
		
		btnTopSecret = new JButton("");
		btnTopSecret.setBounds(10, 23, 64, 64);
		btnTopSecret.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/topSecret.png")));
		btnTopSecret.setActionCommand("stampTopSecret");
		add(btnTopSecret);
		
		btnSelo = new JButton("");
		btnSelo.setBounds(10, 101, 64, 64);
		btnSelo.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/selo.png")));
		btnSelo.setActionCommand("stampSelo");
		add(btnSelo);
		
		btnMailMe = new JButton("");
		btnMailMe.setBounds(104, 101, 64, 64);
		btnMailMe.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/star.png")));
		btnMailMe.setActionCommand("stampStar");
		add(btnMailMe);
		
		btnIronMan = new JButton("");
		btnIronMan.setBounds(104, 23, 64, 64);
		btnIronMan.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/ironMan.png")));
		btnIronMan.setActionCommand("stampIronMan");
		add(btnIronMan);
		
		btnUsPostage = new JButton("");
		btnUsPostage.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/usPostage.png")));
		btnUsPostage.setBounds(10, 181, 64, 64);
		btnUsPostage.setActionCommand("stampUsPostage");
		add(btnUsPostage);
		
		btnFleurDeLys = new JButton("");
		btnFleurDeLys.setIcon(new ImageIcon(StampsPanel.class.getResource("/icons/fleurDeLysIcon.png")));
		btnFleurDeLys.setBounds(104, 181, 64, 64);
		btnFleurDeLys.setActionCommand("stampFleurDeLys");
		add(btnFleurDeLys);

	}

	public void configureListeners(ActionListener listener)
	{
		btnTopSecret.addActionListener(listener);
		btnSelo.addActionListener(listener);
		btnMailMe.addActionListener(listener);
		btnIronMan.addActionListener(listener);
		btnUsPostage.addActionListener(listener);
		btnFleurDeLys.addActionListener(listener);
	}

	public JButton getBtnTopSecret() {
		return btnTopSecret;
	}

	public void setBtnTopSecret(JButton btnTopSecret) {
		this.btnTopSecret = btnTopSecret;
	}

	public JButton getBtnSelo() {
		return btnSelo;
	}

	public void setBtnEmail(JButton btnSelo) {
		this.btnSelo = btnSelo;
	}

	public JButton getBtnMailMe() {
		return btnMailMe;
	}

	public void setBtnMailMe(JButton btnMailMe) {
		this.btnMailMe = btnMailMe;
	}

	public JButton getBtnIronMan() {
		return btnIronMan;
	}

	public void setBtnIronMan(JButton btnIronMan) {
		this.btnIronMan = btnIronMan;
	}

	public JButton getBtnUsPostage() {
		return btnUsPostage;
	}

	public void setBtnUsPostage(JButton btnUsPostage) {
		this.btnUsPostage = btnUsPostage;
	}

	public JButton getBtnFleurDeLys() {
		return btnFleurDeLys;
	}

	public void setBtnFleurDeLys(JButton btnFleurDeLys) {
		this.btnFleurDeLys = btnFleurDeLys;
	}
	
	
}
